package com.lxm.ymcc;

import com.lxm.ymcc.domain.CourseDoc;
import com.lxm.ymcc.result.JSONResult;
import org.springframework.stereotype.Component;

@Component
public class SearchControllerFallBack implements EsSearchServerFeign{

        @Override
        public JSONResult save(CourseDoc doc) {
            return JSONResult.error("搜索服务异常");
        }

    @Override
    public JSONResult del(Long id) {
        return JSONResult.error("下架服务异常");
    }
}
